
#ifndef __UTIL_PACKET_H
#define __UTIL_PACKET_H

#include <stdlib.h>
#include "../doc/protocol_api.h"

#ifdef __cplusplus
extern "C"
{
#endif

PACKET_HEADER_T *UtilMakeHeader( PACKET_HEADER_T *header, guint32 type, guint32 data_len, const char *login );
/*
void putByte( guchar * buf, guchar val );
void putWord( guchar * buf, guint16 val );
void putDWord( guchar * buf, guint32 val );
void putString( guchar * buf, char * str, guint16 len );
void putWideString(guchar *buf, WCHAR *str, guint16 len );

void getByte( guchar ** src, guchar * dst );
void getWord( guchar ** src, guint16 * dst );
void getDWord( guchar ** src, guint32 * dst );
void getArray( guchar ** src, guchar * dst, guint16 len );
void getString( guchar ** src, char * str );
void getWideString(guchar **src, WCHAR *str );
*/
#ifdef __cplusplus
}
#endif
#endif // __UTIL_PACKET_H

